import request from '@/utils/request'

const prePath = "/log";

//获取定时任务日志分页
export function getQuartzLogPage(params) {
    return request({
        url: prePath + '/quartz/page',
        method: 'get',
        params
    })
}

//获取接口日志的分页
export function getInterfaceLogPage(params) {
    return request({
        url: prePath + '/interfaces/page',
        method: 'get',
        params
    })
}

// 接口日志失败采购单重试
export function interfacesRetrySubmitPurchOrder(data) {
  return request({
    url: prePath + '/interfaces/retry',
    method: 'post',
    data
  })
}

//接口日志详情
export function getInterfaceLogDetails(id) {
  return request({
      url: prePath + `/interfaces/${id}`,
      method: 'get'
  })
}
//接口日志详情
export function getAccessPage(params) {
  return request({
      url: prePath + `/access/page`,
      method: 'get',
      params
  })
}